package com.resign.carl.decorate.io;

import java.io.FilterInputStream;
import java.io.IOException;
import java.io.InputStream;

/**
 * Created by carl.zhao on 2016/6/14.
 */
public class LowerCaseInputStream extends FilterInputStream {

    public LowerCaseInputStream(InputStream in){
        super(in);
    }
    @Override
    public int read() throws IOException {
        int c = super.read();
        return (-1 == c ? c : Character.toLowerCase(c));
    }

}
